import ConfigParser

conf = ConfigParser.ConfigParser()
conf.read("d.conf")

db_name = conf.get("db", "db_name")
db_user = conf.get("db", "db_user")

print(db_name)
print(db_user)

